package com.sdry.web.controller.plan;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sdry.utils.ExcelFileUtils;
/**
*
*@ClassName: OthersController
*@Description: 
*@Author tdd
*@Date 2019-03-13 15:43:32
*@version 1.0
*/
@Controller
public class ExcelDownload{
	/**
	 * 导出模板
	 *
	 * @return
	 * @throws IOException 
	 */
	@RequestMapping("/excel/excelTemplate")
	public void ExportFileMachineList(String title,HttpServletResponse response,HttpServletRequest request)
			throws IOException {
		//exportFile(MACHINELIST_TITLE,response);
		ExcelFileUtils.exportExcelFile(title, response, request);
	}
}
